<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"      
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>
            <ui:insert name="title">
                <h:outputText value="#{msg.empresa}"/> 
            </ui:insert>
        </title>        
        <h:outputStylesheet library="css" name="estilo.css" /> 
        
        <meta http-equiv="Expires" content="0" />
        <meta http-equiv="Pragma" content="no-cache" />
        <script type="text/javascript">
              {
              if(history.forward(1))
              location.replace(history.forward(1));
              }
        </script>
        
    </h:head>

    <h:body onload="#{bUsuario.validarSesion()}">
        <p:layout  style="width:100%;min-height:800px;"> 
          
            <p:layoutUnit position="north" size="100" resizable="false" closable="false" 
                          collapsible="false" effect="drop" styleClass="titulo">
              <h:outputText value="#{msg.titulo}" styleClass="titulo"  />                   
          </p:layoutUnit>  
            
          <p:layoutUnit position="south" size="100" styleClass="piepag">        
              <h:outputText value="#{msg.derechos} - #{msg.autor}" />                   
          </p:layoutUnit>  
            
          <p:layoutUnit position="center">
              <div align="right">
                  <h:form style="font-weight: bold; font-size: 15px; padding-right: 20px;" >
                    <h:outputText value="#{msg.usuario}: " />
                    <h:outputText value="#{bUsuario.nom_user}"  />
                    <br/>
                    <p:commandButton  value="#{msg.cerrarSesion}"  icon="ui-icon-closethick" actionListener="#{bUsuario.salirSistema()}"  />
                 </h:form>
              </div>
              <ui:insert name="contenido">
                  
              </ui:insert>        
              <div style="margin-right: 80px;">
                  <ui:include src="/WEB-INF/facelets/menu/menuprincipal.xhtml"/>
              </div>
          </p:layoutUnit>   
        </p:layout>
    </h:body>
</html>

